<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" href="resources/pstyle.css" media="screen" />
    <title>Pfefferspray und Cs-Gas im Shop kaufen!</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <%@page import="pshop.servlet.ServletConstants"%>
    <%@page import="pshop.*"%>
  </head>
  <body>
    <%@ include file="resources/scripts/javascripts.jsp"%>
    <div id="container">
      <%@ include file="banner.jsp"%>
      <%@ include file="resources/trennlinie.html"%>
      <div id="content">
        <%
            Bestellung best = (Bestellung)request.getSession().getAttribute(ServletConstants.ATTR_BEST);
            Person pers = best.getKunde();
            Adresse adr = best.getAdresse();
            String formError = (String) request.getSession().getAttribute(ServletConstants.ATTR_FORM_ERROR);
        %>
        
        <p style="font-size:120%;">Ihre Lieferdaten</p>
        <form action="?<%=ServletConstants.PARAM_ACTION%>=<%=ServletConstants.PARAM_ACTION_CONFRIM%>" method="post" name="versandDaten">
          <table align="center" style="align:center">
            <tr><td style="text-align:left">
              Bitte geben Sie Ihre Lieferadresse sowie Ihre pers&ouml;nlichen Daten ein.<br/>
              Bitte haben Sie Verst&auml;ndnis daf&uuml;r dass wir zurzeit nur gegen Vorkasse liefern k&ouml;nnen.<br/><br/>
              <% if(formError!=null) { %>
              <br>Bitte korrigieren Sie die fehlerhaften Angaben.
              <% } %> 
              </td></tr>
            <tr>
              <td style="text-align:left">
                <table>
                  <tr>
                    <td>Versand:</td>
                    <td><select name="versand" size="1"><option>Deutsche Post 3 &euro;</option></select></td>
                  </tr>
                  <tr>
                    <td>Zahlungsart:</td>
                    <td><select name="zahlungsart" size="1"><option>Vorkasse</option></select></td>
                  </tr>
                  <tr>
                    <td>Name:</td>
                    <td><input name="name" required="required" type="text" size="30" maxlength="30" value="<%= pers.getName()!=null?pers.getName():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Vorname:</td>
                    <td><input name="vorname" required="required" type="text" size="30" maxlength="30" value="<%= pers.getVorname()!=null?pers.getVorname():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Stra&szlig;e/Hsnr:</td>
                    <td><input name="strasse" required="required" type="text" size="30" maxlength="30" value="<%= adr.getStrasse()!=null?adr.getStrasse():"" %>"/></td>
                    <td>Nr:  <input name="hsnr" required="required" type="text" size="10" maxlength="10" value="<%= adr.getNr()!=null?adr.getNr():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Ort:</td>
                    <td><input name="ort" required="required" type="text" size="30" maxlength="30" value="<%= adr.getOrt()!=null?adr.getOrt():"" %>"/></td>
                    <td>Plz: <input name="plz" required="required" pattern="[0-9]{5}" type="text" size="10" maxlength="10" value="<%= adr.getPlz()!=0?adr.getPlz():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Land:</td>
                    <td><select name="land" size="1"><option>Deutschland</option></select></td>
                  </tr>
                  <tr>
                    <td>Email:</td>
                    <td><input name="email" required="required" type="email" size="30" maxlength="30" value="<%= pers.getEmail()!=null?pers.getEmail():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Email wiederholen:</td>
                    <td><input name="email2" required="required" type="email" size="30" maxlength="30" value="<%= pers.getEmail()!=null?pers.getEmail():"" %>"/></td>
                  </tr>
                  <tr>
                    <td>Kommentar:</td>
                    <td><textarea name="kommentar" cols="25" rows="3" value="<%= best.getKommentar()!=null?best.getKommentar():"" %>"></textarea></td>
                  </tr>
                  <tr>
                    <td align="right\"><input type="checkbox" required="required" name="agb" value="1"/></td>
                    <td><a href="agb.jsp" target="_blank">AGB</a> akzeptieren</td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr><td style="padding-top:10px">
              <input type="submit" value="Bestellung absenden"/>
              </td></tr>
          </table>
        </form>
      </div>
      <%@ include file="resources/trennlinie.html"%>
      <%@ include file="resources/footer.jsp"%>
    </div>
    <script type="text/javascript">_uacct = "UA-667991-1";urchinTracker();</script>
  </body>
</html>